home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
and_or.str
< prev
next >
Wrap
Text File
|
1991-04-12
|
1KB
|
38 lines
Article 2840 of comp.sys.handhelds:
Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!cs.utexas.edu!yale!mintaka!ai-lab!rice-chex!bson
From: bson@rice-chex.ai.mit.edu (Jan Brittenson)
Newsgroups: comp.sys.handhelds
Subject: Re: 32 Bt Mant is < I need!
Message-ID: <12330@life.ai.mit.edu>
Date: 10 Dec 90 16:20:00 GMT
References: <1990Dec10.034626.27415@cc.ic.ac.uk> <10060@jarthur.Claremont.EDU> <2667@charon.cwi.nl>
Sender: news@ai.mit.edu
Organization: nil
Lines: 23
In article <2667@charon.cwi.nl> jurjen@cwi.nl (Jurjen NE Bos) writes:
> The 48SX already has arbitrary-large binaries--except that it cannot
> do computations with them. ... If only someone would write input and
> calculation routines for those long binaries...
The HP-48 performs logical operations on strings, and since binary
numbers essentially are strings with a different type prefix, all we
have to do for AND, OR, XOR, NOT, is to bypass the type check:
#188e6 SYSEVAL AND strings
#188f5 SYSEVAL OR strings
#18904 SYSEVAL XOR strings
#18961 SYSEVAL NOT string
In fact, these routines can be appled to any object that is a
"vector" object, i.e. a type prefix followed by a 20-bit length
counting the length itself - Library data, GROB, String, and Binary.
So I guess what need are +, -, *, /, and a few shift operations,
and we're all set!